#!/usr/bin/env python
# -*- encoding: utf-8 -*-

import pickle

phone = {'tom':12345, 'jack':'abcde', 'jim':98765, 'joseph':222333444}
list = ['string', 1234, 0.2345]
tuple = (phone, list)			# 리스트, 튜플, 사전의 복합 객체

f = open("pick1.txt", "w")
pickle.dump(tuple, f)			# 복합객체 출력
f.close()

f = open("pick1.txt")
x, y = pickle.load(f)
print "x(phone) : ", x
print "y(list)  : ", y

